package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.device.model.entity.SysUser;
import com.wtwd.device.model.vo.UserInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author mjy
 * @date 2021/08/03
 * @description
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {


    Integer updateSysUser(@Param("sysUser") SysUser sysUser);

    IPage<UserInfoVo> getAllUserInfoByConditions(@Param("account") String account,@Param("page") Page<Object> page);

    Integer addSysUser(SysUser sysUser);

    Integer deleteSysUser(@Param("userId") Integer userId);

    SysUser getSysUserByAccount(@Param("account") String account);
}
